package com.rds.common.core.domain.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.rds.common.core.domain.BaseEntity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 公司表 sys_dept
 * @author rds
 */
public class SysCompany extends BaseEntity {
    /** 公司id */
    private Long companyId;

    /** 父公司id */
    private Long parentId;

    /** 祖级列表 */
    private String ancestors;

    /** 公司名称 */
    private String companyName;

    /** 显示顺序 */
    private Long orderNum;

    /** 法人 */
    private String charge;

    /** 联系电话 */
    private String tel;

    /** 邮箱 */
    private String email;

    /** 公司状态:0正常,1停用 */
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private char delFlag;

    /** 创建者*/
    private String createBy;

    /** 创建时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新者*/
    private String updateBy;

    /** 更新时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 部门ID */
    private Long deptId;

    /** 部门名称 */
    private String deptName;


    /** 子公司 */
    private List<SysCompany> children=new ArrayList<SysCompany>();

    /** 是否是公司 1代表公司 2代表部门 */
    private String companyOrDept;

    /** 是否有预览打印 1有 0没有 */
    private String isprint;

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getAncestors() {
        return ancestors;
    }

    public void setAncestors(String ancestors) {
        this.ancestors = ancestors;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public Long getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Long orderNum) {
        this.orderNum = orderNum;
    }

    public String getCharge() {
        return charge;
    }

    public void setCharge(String charge) {
        this.charge = charge;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public char getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(char delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String getCreateBy() {
        return createBy;
    }

    @Override
    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String getUpdateBy() {
        return updateBy;
    }

    @Override
    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    @Override
    public Date getUpdateTime() {
        return updateTime;
    }

    @Override
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public List<SysCompany> getChildren() {
        return children;
    }

    public void setChildren(List<SysCompany> children) {
        this.children = children;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getCompanyOrDept() {
        return companyOrDept;
    }

    public void setCompanyOrDept(String companyOrDept) {
        this.companyOrDept = companyOrDept;
    }

    public String getIsprint() {
        return isprint;
    }

    public void setIsprint(String isprint) {
        this.isprint = isprint;
    }
}
